@Component
@Aspect
public class LogAop {
    @Autowired
    private HttpServletRequest request;
    
    private final static Logger logger = LoggerFactory.getLogger(LogAop.class);

    @Pointcut("execution(* com.公司名.项目名.controller.backstage.*.*(..))")
    public void pointCut() {
    }

    @Before("pointCut()")
    public void doBefore(JoinPoint joinPoint) {
        // 前置处理
    }

    @After("pointCut()")
    public void doAfter() {
        // 后置处理
    }

    @AfterThrowing(pointcut = "pointCut()", throwing = "ex")
    public void afterThrowing(Throwable ex) {
        // 异常处理
    }
}